import request from "api";

export function getAllProClass(page){
    return request({
        method:"get",
        url:"/CalibMajor/getAllCalibMajor",
        params:{
            PageIndex:page.index,
            PageSize:page.PageSize
        }
    })
}

export function addProClass(form){
    return request({
        method:"post",
        url:"/CalibMajor/add",
        data:{
            Name:form.Name,
            Id:form.Id*1,
        }
    })
}

export function deleteProClass(Id){
    return request({
        method:"delete",
        url:"/CalibMajor/delete",
        params:{
            Id,
        }
    })
}

export function editProClass(form){
    return request({
        method:"post",
        url:"/CalibMajor/modify",
        data:{
            Name:form.Name,
            Id:form.Id,
        }
    })
}

